﻿﻿import {findgood} from '../../../api/Promotion/promotion'
let brand={
    data() {
        return {
            promotionName:'',
            promotionTime: '',
            approvalStatus: "",

            goodInfo:{
                goodName:"",
                goodModel:"",
                goodColour:"", //商品颜色
                goodBrand:"", //品牌
            },

            pageDate:[], //分页数据内容
            totalPage:0,  //总页数
            searchParams: {
                page: 1, //页数
                size: 5  //每页条数
            }
        };
    },
    methods: {
        findPage(){
            findgood().then(response=>{
                // this.totalPage = response.total;
                this.pageDate = response;
            })
        },
        rest(){
            this.promotionName="";
            this.promotionTime = "";
            this.approvalStatus ="";
        },
        backtrack(){
            this.$router.push({
                path:"/PromotionApply",
            })
        }


    },
    // created(){
    //     this.initialize();
    // }
};

export default brand;

